package com.ruoyi.admin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.admin.mapper.PrescriptMapper;
import com.ruoyi.admin.domain.Prescript;
import com.ruoyi.admin.service.IPrescriptService;

/**
 * prescriptService业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-11
 */
@Service
public class PrescriptServiceImpl implements IPrescriptService 
{
    @Autowired
    private PrescriptMapper prescriptMapper;

    /**
     * 查询prescript
     * 
     * @param id prescript主键
     * @return prescript
     */
    @Override
    public Prescript selectPrescriptById(Long id)
    {
        return prescriptMapper.selectPrescriptById(id);
    }

    /**
     * 查询prescript列表
     * 
     * @param prescript prescript
     * @return prescript
     */
    @Override
    public List<Prescript> selectPrescriptList(Prescript prescript)
    {
        return prescriptMapper.selectPrescriptList(prescript);
    }

    /**
     * 新增prescript
     * 
     * @param prescript prescript
     * @return 结果
     */
    @Override
    public int insertPrescript(Prescript prescript)
    {
        return prescriptMapper.insertPrescript(prescript);
    }

    /**
     * 修改prescript
     * 
     * @param prescript prescript
     * @return 结果
     */
    @Override
    public int updatePrescript(Prescript prescript)
    {
        return prescriptMapper.updatePrescript(prescript);
    }

    /**
     * 批量删除prescript
     * 
     * @param ids 需要删除的prescript主键
     * @return 结果
     */
    @Override
    public int deletePrescriptByIds(Long[] ids)
    {
        return prescriptMapper.deletePrescriptByIds(ids);
    }

    /**
     * 删除prescript信息
     * 
     * @param id prescript主键
     * @return 结果
     */
    @Override
    public int deletePrescriptById(Long id)
    {
        return prescriptMapper.deletePrescriptById(id);
    }
}
